const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登陆页",
      showLink: false,
      rank: 101,
    },
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: "重定向",
      showLink: false,
      rank: 102,
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue"),
      },
    ],
  },
  // NOTE：下面是一个无layout菜单的例子（一个全屏空白页面），因为这种情况极少发生，所以只需要在前端配置即可（配置路径：src/router/modules/remaining.ts）
  // {
  //   path: "/empty",
  //   name: "Empty",
  //   component: () => import("@/views/empty/index.vue"),
  //   meta: {
  //     title: "无layout菜单",
  //     // showLink: false,
  //     rank: 103,
  //   },
  // },
  // {
  //   path: "/graph",
  //   name: "Graph",
  //   component: () => import("@/views/graph/index.vue"),
  //   meta: {
  //     title: "图谱可视化",
  //     showLink: false,
  //     rank: 103,
  //   },
  // },
] as Array<RouteConfigsTable>;
